# encoding: UTF-8
module MongoMapper
  module Plugins
    module Associations
      class ManyPolymorphicProxy < ManyDocumentsProxy

      private

        def apply_scope(doc)
          doc[association.type_key_name] = doc.class.name
          super
        end
      end
    end
  end
end
